/* 404页面基础样式 */
* {
    padding: 0;
    margin: 0;
    transition-timing-function: cubic-bezier(.19, 1, .22, 1);
}

body {
    font-family: Helvetica, Tahoma, Arial, "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Heiti, "黑体", sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #fff;
    line-height: 2;
    padding: 0 5%;
    background-color: #212121;
    font-size: 17px;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 120vh;
    z-index: -1;
}

#startrack {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: .5;
    object-fit: cover;
}

.background .cover {
    position: absolute;
    bottom: 0%;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to top, rgba(32, 32, 32, 1) 30%, rgba(32, 32, 32, 0) 100%);
}

/* 404页面专用样式 */
.main {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

.error-content {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

.error-code {
    font-size: 15vw;
    font-weight: bold;
    margin: -5vh 0 1rem;
    letter-spacing: -3px;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.3s forwards;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.error-code::before {
    content: '404';
    position: absolute;
    top: 8px;
    left: -8px;
    color: rgba(255, 255, 255, 0.2);
    z-index: -1;
    filter: blur(2px);
}

.error-message {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    font-weight: 300;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.5s forwards;
}

.error-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.7s forwards;
}

.back-home-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 30px;
    font-size: 16px;
    font-weight: normal;
    text-decoration: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.9s forwards;
    backdrop-filter: blur(5px);
}

.back-home-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-home-btn:active {
    transform: translateY(0);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .error-code {
        font-size: 20vw;
        margin: -2vh 0 1rem;
        letter-spacing: -2px;
    }
    
    .error-message {
        font-size: 1.5rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .back-home-btn {
        padding: 10px 25px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0 10px;
        font-size: 15px;
    }
    
    .error-code {
        font-size: 25vw;
        letter-spacing: -1px;
    }
    
    .error-message {
        font-size: 1.3rem;
    }
    
    .main {
        padding: 1rem 0.5rem;
    }
}